﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;

namespace JX.Core.Entity
{
	/// <summary>
	/// 词典选项值信息，对应Dictionary表中fieldValue字段的信息。
	/// </summary>
	public partial class DictionaryValue
	{
		/// <summary>
		/// 数据文本字段名
		/// </summary>
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public string DataTextField { get; set; } = string.Empty;

		/// <summary>
		/// 数据值字段名
		/// </summary>
		public int DataValueField { get; set; }

		/// <summary>
		/// 数据文本名
		/// </summary>
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public string Title { get; set; } = string.Empty;

		/// <summary>
		/// 是否默认值
		/// </summary>
		public bool IsDefault { get; set; } = false;

		/// <summary>
		/// 是否启用
		/// </summary>
		public bool IsEnable { get; set; } = true;

	}
}
